import request from '@/utils/request';

export async function queryRule(params) {
    return request('/goods/goodsField/list', {
        params,
    });
}
export async function removeRule(params) {
    return request(`/goods/goodsField/${params}`, {
        method: 'DELETE',

    });
}
export async function addRule(params) {
    return request('/goods/goodsField', {
        method: 'POST',
        data: params,
    });
}
export async function updateRule(params) {
    return request('/goods/goodsField', {
        method: 'PUT',
        data: params,
    });
}